using System.Collections.Generic;
using System.Diagnostics;
using System.Xml.Serialization;

namespace Edmx.Storage
{
    [DebuggerDisplay("Name={Name}")]
    [XmlType(Namespace = EdmxConstants.StorageSchemaNamespace)]
    public class Association : MetadataEntityBase<Association>
    {
        [XmlElement("End")]
        public List<AssociationEnd> End { get; set; }

        [XmlElement("ReferentialConstraint")]
        public Constraint ReferentialConstraint { get; set; }

        [XmlAttribute("Name")]
        public string Name { get; set; }
    }
}